package net.ufrog.common.weixin.xpp;

import java.io.Writer;

import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
import com.thoughtworks.xstream.io.naming.NoNameCoder;
import com.thoughtworks.xstream.io.xml.XppDriver;

/**
 * @author ultrafrog
 * @version 1.0, 2014-12-29
 * @since 1.0
 */
public class CdataXppDriver extends XppDriver {

	/** 构造函数 */
	public CdataXppDriver() {
		super(new NoNameCoder());
	}
	
	/* (non-Javadoc)
	 * @see com.thoughtworks.xstream.io.xml.AbstractXppDriver#createWriter(java.io.Writer)
	 */
	@Override
	public HierarchicalStreamWriter createWriter(Writer out) {
		return new CdataPrettyPrintWriter(out);
	}
}
